package com.vx.vxbug.services;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.vx.vxbug.dao.IProgramDao;
import com.vx.vxbug.entities.Program;

@Service
public class ProgramService {

	@Autowired
	private IProgramDao ProgramDao;

	public void addProgram(Program b) {
		ProgramDao.addProgram(b);
	}

	public Program getProgramById(int id) {
		return ProgramDao.getProgramById(id);
	}

	public List<Program> getAllPrograms() {
		return ProgramDao.getAllPrograms();
	}

}
